
/*
*
* 房屋基本信息(含账户信息)+账户流水
* */
Rsd.define('Rsd.Faith.dialogs.InfoFenHuZhangDialog', {
    extend: 'Rsd.view.MajorSubDialog',
    requires: [
        'Rsd.controlEx.MajorSubViewer',
        'Rsd.Faith.stores.ListStore'
    ],
    title:'账户详细信息',
    sub: {
        fk:'ZhangHuBianHao',
        sort:[{name:'RiQi',direction:'desc'}],
        toolBar:{
            xtype:'grid-tool-bar-simple',
            newButtons:[
                {xtype:'label',text:'★ 该账户交易流水记录列表 ★ '}
            ]},
        "columns":[
            {
                "text": "序号",
                "xtype": "index",
                "width": 40,
                "index": 0
            },
            {
                "name": "LiuShuiHao",
                "dataIndex": "LiuShuiHao",
                "sortable": false,
                "text": "流水号",
                "index": 22,
                "exist": true,
                "xtype": "string",
                "width": 150,
                "nobr": true
            },
            /*{
                "name": "ZhangHuBianHao",
                "dataIndex": "ZhangHuBianHao",
                "sortable": false,
                "text": "账户编号",
                "index": 20,
                "exist": true,
                "xtype": "string",
                "width": 100,
                "nobr": true
            },*/

            {
                "name": "SuoShuQi",
                "dataIndex": "SuoShuQi",
                "sortable": false,
                "text": "所属期",
                "index": 32,
                "exist": true,
                "xtype": "string",
                "width": 60,
                "nobr": true
            },
            {
                "name": "RiQi",
                "dataIndex": "RiQi",
                "sortable": false,
                "text": "交易日期",
                "index": 24,
                "exist": true,
                "xtype": "date",
                 "formatString":"yyyy-MM-dd",
                "width": 70,
                "nobr": true
            },
            {
                "name": "JinE",
                "dataIndex": "JinE",
                "sortable": false,
                "text": "交易金额",
                "index": 26,
                "exist": true,
                "xtype": "number",
                "width": 70,
                "precision": 2
            },
            {
                "name": "ShouRuZhiChu",
                "dataIndex": "ShouRuZhiChu",
                "sortable": false,
                "text": "收入/支出",
                "index": 30,
                "exist": true,
                "align":'center',
                "xtype": "string",
                "width": 70,
                "nobr": true
            },
           /* {
                "name": "YuE",
                "dataIndex": "YuE",
                "sortable": false,
                "text": "交易后余额",
                "index": 27,
                "exist": true,
                "xtype": "number",
                "width": 100,
                "precision": 2
            },*/
            {
                "name": "ZhaiYao",
                "dataIndex": "ZhaiYao",
                "sortable": false,
                "text": "摘要",
                "index": 28,
                "exist": true,
                "xtype": "string",
                "width": 150,
                "nobr": true
            },

            {
                "name": "Remark",
                "dataIndex": "Remark",
                "sortable": false,
                "text": "备注",
                "index": 29,
                "exist": true,
                "xtype": "string",
                "width": 100,
                "nobr": true
            }
        ],
        dataSource:'listStore',
        modelType:'Rsd.Faith.Models.BookFenHuZhangLiuShuiModel'
    },
    major: {
        modelType:'Rsd.Faith.Models.BookFenHuZhangModel',
        height:170,
        legend: '账户信息',
        readOnly:true,
        key:'ZhangHuBianHao',
        "fields":[
            /*{
                "name": "XiaoQuBianHao",
                "label": {
                    "width": 80,
                    "content": "小区编号"
                },
                "dataIndex": "XiaoQuBianHao",
                "index": 24,
                "exist": true,
                "xtype": "text",
                width:350,
                "length": 20
            },*/
            {
                "name": "FangWuBianHao",
                "label": {
                    "width": 80,
                    "content": "房屋编号"
                },
                "dataIndex": "FangWuBianHao",
                "index": 25,
                "exist": true,
                "xtype": "text",
                width:350,
                "length": 50
            },
            {
                "name": "ZhangHuBianHao",
                "label": {
                    "width": 80,
                    "content": "账户编号"
                },
                "dataIndex": "ZhangHuBianHao",
                "index": 20,
                "exist": true,
                "xtype": "text",
                width:350,
                "length": 50
            },
            {
                "name": "JianZhangRiQi",
                "label": {
                    "width": 80,
                    "content": "建账日期"
                },
                "dataIndex": "JianZhangRiQi",
                "index": 22,
                "exist": true,
                width:350,
                "xtype": "date",
                "formatString": "yyyy-MM-dd"
            },

            {
                "name": "JiaoCunJinE",
                "label": {
                    "width": 80,
                    "content": "缴存金额"
                },
                "dataIndex": "JiaoCunJinE",
                "index": 26,
                "exist": true,
                width:350,
                "xtype": "number",
                "precision": 2
            },
            {
                "name": "ShouYiJinE",
                "label": {
                    "width": 80,
                    "content": "增值收益金额"
                },
                "dataIndex": "ShouYiJinE",
                "index": 27,
                "exist": true,
                width:350,
                "xtype": "number",
                "precision": 2
            },
            {
                "name": "ShiYongJinE",
                "label": {
                    "width": 80,
                    "content": "已使用金额"
                },
                "dataIndex": "ShiYongJinE",
                "index": 28,
                "exist": true,
                width:350,
                "xtype": "number",
                "precision": 2
            },
            {
                "name": "SuoShuQi",
                "label": {
                    "width": 80,
                    "content": "当前所属期"
                },
                "dataIndex": "SuoShuQi",
                "index": 29,
                "exist": true,
                width:350,
                "xtype": "text",
                "length": 20
            },
            {
                "name": "QiChuJinE",
                "label": {
                    "width": 80,
                    "content": "期初金额"
                },
                "dataIndex": "QiChuJinE",
                "index": 30,
                "exist": true,
                width:350,
                "xtype": "number",
                "precision": 2
            },
            {
                "name": "YuE",
                "label": {
                    "width": 80,
                    "content": "当前余额"
                },
                "dataIndex": "YuE",
                "index": 31,
                "exist": true,
                width:350,
                "xtype": "number",
                "precision": 2
            },
            {
                "name": "ZhuangTai",
                "label": {
                    "width": 80,
                    "content": "状态"
                },
                "dataIndex": "ZhuangTai",
                "index": 32,
                "exist": true,
                width:350,
                "xtype": "text",
                "length": 10
            },
            {
                "name": "Remark",
                "label": {
                    "width": 80,
                    "content": "备注"
                },
                "dataIndex": "Remark",
                "index": 200,
                "exist": true,
                "xtype": "text",
                width:350,
                "length": 100
            }
        ]

    },
    width: 1200,
    height: 600,
    /*
     *
     * */
    constructor :function constructor(config) {
        config = config || {};
        this.apply(config);

    },
    load:function load(row) {

        var me = this;
        me.callParent(row);
    }

});